package com.ctsi.framework.schema.manager.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: zhangjw
 * @Date: 2018/9/12 18:31
 * @Description:
 */
@ConfigurationProperties(prefix = "ctsi-cloud.db-schema-manager")
public class SchemaManagerProperties {

    public static final String DB_SCHEMA_UPDATE = "update";
    public static final String DB_SCHEMA_CHECK = "check";
    public static final String DB_SCHEMA_UPDATE_CREATE = "create";
    public static final String DB_SCHEMA_UPDATE_CREATE_DROP = "create-drop";
    public static final String DB_SCHEMA_UPDATE_DROP_CREATE = "drop-create";


    /**
     *  四种模式可选 update,create,create-drop,drop-create,check
     */
    private String mode = DB_SCHEMA_UPDATE;

    private String schemaName;

    private String catalog;

    private boolean enable = true;

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getMode() {
        return this.mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getSchemaName() {
        return this.schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getCatalog() {
        return this.catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public SchemaManagerProperties() {
    }
}
